%{
#include <stdio.h>
extern int yylex();
%}
%token '\n' '+' '-' '*' '/' '{' '}' '(' ')' ':' ';' ',' '.' '=' OPCOMP THIS
%token <string> CLEF MOT
%token <floatVal> NUM
%union {
  float floatVal;
  char* string;
}
%left '+' '-' 
%left '*' '/'
%%
Liste: NomCompose '\n'
     | Liste NomCompose '\n' { printf("MotCompose"); }
     ;
NomCompose:
          | NomCompose MOT '\n'{ printf("Mot1"); }
          | NomCompose THIS { printf("Mot2"); }
          | NomCompose MOT '.'   { printf("Mot3"); }
          | NomCompose THIS '.'   { printf("Mot4"); }
          ;

%%
